use dioxus::prelude::*;

mod home;
mod dashboard;
mod settings;
mod profile;
mod spider;

pub use home::Home;
pub use dashboard::Dashboard;
pub use settings::Settings;
pub use profile::Profile;
pub use spider::Spider;

#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip] 
pub enum Route {
    #[layout(crate::layouts::MainLayout)]
    #[route("/")]
    Home {},
    #[route("/dashboard")]
    Dashboard {},
    #[route("/settings")]
    Settings {},
    #[route("/profile")]
    Profile {},
    #[route("/spider")]
    Spider {}
}